<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mall_camp_push.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields" :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from '@/extension/mall/Mall_camp_push.js'
import ViewGrid from '@/components/basic/ViewGrid.vue'
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: 'id',
        footer: 'Foots',
        cnName: '营中推送',
        name: 'Mall_camp_push',
        url: '/Mall_camp_push/',
        sortName: 'createDate',
      },
      extend: extend,
      editFormFields: { campsiteId: '', campsitePhaseId: '', noticetime: '', deadline: '', homepagereminder: '', pageposterurl: [], pushType: '' },
      editFormOptions: [
        [
          { dataKey: 'campsite', data: [], title: '营地名称', field: 'campsiteId', type: 'select' },
          { dataKey: '', data: [], title: '营期名称', field: 'campsitePhaseId', type: 'select' },
        ],
        [
          { title: '通知时间', field: 'noticetime', type: 'datetime' },
          { title: '截至时间', field: 'deadline', type: 'datetime' },
        ],
        [
          { title: '页面海报', field: 'pageposterurl', type: 'imgupgrade' },
          {
            title: '推送类型',
            field: 'pushType',
            type: 'radio',
            data: [
              { key: 0, value: '签到确认' },
              { key: 1, value: '签退确认' },
            ],
          },
        ],
        [{ title: '首页填写提醒', field: 'homepagereminder', type: 'textarea', colSize: 12 }],
      ],
      searchFormFields: { campsiteId: '', campsitePhaseId: '', pushType: '' },
      searchFormOptions: [
        [
          { dataKey: 'campsite', data: [], title: '营地名称', field: 'campsiteId', type: 'select' },
          { dataKey: '', data: [], title: '营期名称', field: 'campsitePhaseId', type: 'select' },
          {
            title: '推送类型',
            field: 'pushType',
            type: 'select',
            data: [
              { key: 0, value: '签到确认' },
              { key: 1, value: '签退确认' },
            ],
            dataKey: '',
          },
        ],
      ],
      columns: [
        //    {field:'createID',title:'创建人id',type:'int',width:90,hidden:true,align:'left'},
        { field: 'campsiteId', title: '营地名称', type: 'int', bind: { key: 'campsite', data: [] }, width: 90, align: 'left' },
        { field: 'campsitePhaseId', title: '营期名称', type: 'int', bind: { key: '', data: [] }, width: 90, align: 'left' },
        { field: 'pageposterurl', title: '页面海报', type: 'imgupgrade', width: 120, align: 'left' },
        { field: 'noticetime', title: '通知时间', type: 'datetime', width: 190, align: 'left', sortable: true },
        { field: 'deadline', title: '截至时间', type: 'datetime', width: 190, align: 'left', sortable: true },
        //    {field:'id',title:'id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
        //    {field:'modifyID',title:'修改人id',type:'int',width:90,hidden:true,align:'left'},
        {
          field: 'pushType',
          title: '推送类型',
          type: 'int',
          width: 90,
          align: 'left',
          bind: {
            data: [
              { key: 0, value: '签到确认' },
              { key: 1, value: '签退确认' },
            ],
            key: '',
          },
        },
        { field: 'homepagereminder', title: '首页填写提醒', type: 'string', width: 120, align: 'left' },
        { field: 'creator', title: '创建人', type: 'string', width: 100, align: 'left' },
        { field: 'createDate', title: '创建时间', type: 'datetime', width: 190, align: 'left', sortable: true },
        { field: 'modifier', title: '修改人', type: 'string', width: 220, align: 'left' },
        { field: 'modifyDate', title: '修改时间', type: 'datetime', width: 90, align: 'left', sortable: true },
      ],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '',
        key: '',
      },
    }
  },
}
export default vueParam
</script>
